cmake_minimum_required(VERSION 3.10)
project(terminal_cloud_netdisk VERSION 1.0)

set(SOURCE ${PROJECT_SOURCE_DIR}/src)

include_directories(${PROJECT_SOURCE_DIR}/include)

add_executable(terminal_cloud_netdisk 
                main.cc 
                ${SOURCE}/net_server.cc
                ${SOURCE}/task_queue.cc
                ${SOURCE}/thread_poll.cc
                ${SOURCE}/tcp_connect.cc
                ${SOURCE}/parser.cc
                ${SOURCE}/mysql.cc
                )


target_link_libraries(terminal_cloud_netdisk  
                    pthread 
                    mysqlcppconn
                    crypto
                    )